package com.mzy.SpringApi.AutowiredListOrMap;

import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/6/14 13:39
 * @Version 1.0
 */
@Component("teacher")
public class TeacherImpl implements IPerson {

    @Override
    public void doWork() {
        System.out.println("I am teaching");
    }

}